#ifndef _EFFECTSMANAGER_H_
#define _EFFECTSMANAGER_H_

#include "Scene.h"
#include <string>

using namespace Ogre;

class EffectsManager
{
public:
	EffectsManager(SceneManager* sceneMgr,SceneNode* m, String what):mSceneMgr(sceneMgr),mPivot(m),EffectName(what){}

	void addEffect()
	{
		ParticleSystem::setDefaultNonVisibleUpdateTimeout(5);  // set nonvisible timeout

		ParticleSystem* ps;
		ps = mSceneMgr->createParticleSystem("myEffect", "Examples/"+EffectName);

		mPivot->attachObject(ps);
	}

	SceneNode* mPivot;
	String EffectName;
	SceneManager* mSceneMgr;
};


#endif